home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
How Would You Survive?
/
How Would You Survive (1995)(Grolier)[Mac-PC].iso
/
mac
/
SHARED.DIR
/
01954_Script_SliderHot Spots
< prev
next >
Wrap
Text File
|
1995-09-13
|
2KB
|
110 lines
global gOpenHouse1, gOpenHouse2
On ESliderRollovers
if (testEgyptCursor()) then
EgyptCursor
else
if rollover(46) then
EgyptCursor
else
if rollover(2) or rollover(4) then
if gOpenHouse1 = 1 then
ArrowCursor
else
EgyptCursor
end if
else
if rollover(3) then
if gOpenHouse2 = 1 then
ArrowCursor
else
EgyptCursor
end if
else
ArrowCursor
end if
end if
end if
end if
end
on testEgyptCursor
set count = 5
set isEgypt = FALSE
repeat while (isEgypt = FALSE and count < 27)
set count = count + 1
if rollover(count) then
set isEgypt = TRUE
end if
end repeat
return isEgypt
end
On VSliderRollovers
if (testVikingCursor()) then
VikingCursor
else
if rollover(2) then
if gOpenHouse1 = 1 then
ArrowCursor
else
VikingCursor
end if
else
if rollover(3) then
if gOpenHouse2 = 1 then
ArrowCursor
else
VikingCursor
end if
else
ArrowCursor
end if
end if
end if
end
On ASliderRollovers
if (testAztecCursor()) then
AztecCursor
else
if rollover(2) then
if gOpenHouse1 = 1 then
ArrowCursor
else
AztecCursor
end if
else
ArrowCursor
end if
end if
end
on testAztecCursor
set count = 3
set isAztec = FALSE
repeat while (isAztec = FALSE and count < 24)
set count = count + 1
if rollover(count) then
set isAztec = TRUE
end if
end repeat
return isAztec
end
on testVikingCursor
set count = 4
set isViking = FALSE
repeat while (isViking = FALSE and count < 27)
set count = count + 1
if rollover(count) then
set isViking = TRUE
end if
end repeat
return isViking
end